﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace CWM.Client.Utils
{
    [DataContract]
    public class JSONTable
    {
        [DataMember]
        public int ColumnCount { get; set; }
        [DataMember]
        public string[] ColumnNames { get; set; }
        [DataMember]
        public ColumnMeta[] ColumnMeta { get; set; }
        [DataMember]
        public object[][] Data { get; set; }
    }
    [DataContract]
    public class ColumnMeta
    {
        [DataMember]
        public int Idx { get; set; }
        [DataMember]
        public int DisplaySize { get; set; }
        [DataMember]
        public string Name { get; set; }
        [DataMember]
        public int Precision { get; set; }  //有效数字长度
        [DataMember]
        public int Scale { get; set; }  //精度
        [DataMember]
        public string DBType { get; set; } //数据库字段类型
        [DataMember]
        public string JavaType { get; set; }  //java字段类型
    }

}
